//
// Created by Shin on 2023/11/7.
//

#ifndef MAIN_C_BTW901_H
#define MAIN_C_BTW901_H

#include "ROS_car_cfg.h"

#if USE_WIT

#include "main.h"

#define WIT_VERSION                         1

#define WIT_KIND_LINEAR_ACCELERATION        0x51
#define WIT_KIND_ANGULAR_VELOCITY           0x52
#define WIT_KIND_ANGLE                      0x53
#define WIT_KIND_ORIENTATION                0x59
#define WIT_KIND_VERSION                    0x5F

uint8_t WIT_data_sum_crc(uint8_t *data, int data_num);
void WIT_data_update(uint8_t *data_source);
void WIT_reset(void);

#endif

#endif //MAIN_C_BTW901_H
